// @ts-ignore
/* eslint-disable */
import { request } from '@/utils/request';

/** 此处后端没有提供注释 POST /api/bioinformaticDoc/addBioinformaticDoc */
export async function addBioinformaticDoc(
  body: API.BioinformaticDocDTO,
  options?: { [key: string]: any },
) {
  return request<number>('/api/bioinformaticDoc/addBioinformaticDoc', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 此处后端没有提供注释 POST /api/bioinformaticDoc/deleteBioinformaticDoc */
export async function deleteBioinformaticDoc(body: number[], options?: { [key: string]: any }) {
  return request<any>('/api/bioinformaticDoc/deleteBioinformaticDoc', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 此处后端没有提供注释 POST /api/bioinformaticDoc/fullSearch */
export async function search1(body: API.KeywordQueryDTO, options?: { [key: string]: any }) {
  return request<API.PageLuceneResultBookVO>('/api/bioinformaticDoc/fullSearch', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 此处后端没有提供注释 POST /api/bioinformaticDoc/getBioinformaticDocByCode */
export async function getBioinformaticDocByCode(options?: { [key: string]: any }) {
  return request<string>('/api/bioinformaticDoc/getBioinformaticDocByCode', {
    method: 'POST',
    ...(options || {}),
  });
}

/** 此处后端没有提供注释 POST /api/bioinformaticDoc/listBioinformaticDoc */
export async function listBioinformaticDoc(
  body: API.BioinformaticDocQueryDTO,
  options?: { [key: string]: any },
) {
  return request<API.PageBioinformaticDocVO>('/api/bioinformaticDoc/listBioinformaticDoc', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 此处后端没有提供注释 POST /api/bioinformaticDoc/updateBioinformaticDoc */
export async function updateDepartment1(
  body: API.BioinformaticDocDTO,
  options?: { [key: string]: any },
) {
  return request<number>('/api/bioinformaticDoc/updateBioinformaticDoc', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
